import React, { Component } from 'react'
import Item from './item'

class Main extends Component {
    render() { 
        let { list, i } = this.props
        return (
            <div>
                {
                    list && list.length ? list[i].children.map((item, index) => {
                        return <Item key={index} item={item} />
                    }) : <div>暂无数据</div>
                }
            </div>
        )
    }
}
 
export default Main;